﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.BlobStoring;

namespace Himp.Platform.Cores
{
    public class FileService: PlatformAppService
    {
        private readonly IBlobContainer _blobContainer;

        public FileService(IBlobContainer blobContainer)
        {
            _blobContainer = blobContainer;
        }

        

        //public async Task SaveBytesAsync(byte[] bytes)
        //{
        //    await _blobContainer.SaveAsync("my-blob-1", bytes);
        //}

        //public async Task<byte[]> GetBytesAsync()
        //{
        //    return await _blobContainer.GetAllBytesOrNullAsync("my-blob-1");
        //}
    }
}
